home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
os2
/
splot170.zip
/
demo
/
art.spt
< prev
next >
Wrap
Text File
|
1994-09-30
|
557b
|
31 lines
#include <splot.h>
/* This is a region filling example */
int i;
main()
{
set(LINEWIDTH,0.1);
set(FILLRULE,EVENODD);
translate(10,15);
for (i=0;i < 8;i++)
{
set(LINECOLOUR,i);
leaf();
rotate(45);
}
}
int leaf()
{
arc(3.1,3.38896,0.4,0,360);
moveto(0,0);
curveto(3.38924,0.598051,3.18987,3.85411,5.91456,6.11341);
curveto(2.06013,5.44891,2.52532,1.5948,0,0);
closepath();
gsave();
fill();
grestore();
set(LINECOLOUR,BLACK);
stroke();
}